import request from '@/utils/request'

// 查询申论试卷管理列表
export function listSlpaper(query) {
  return request({
    url: '/business/slpaper/list',
    method: 'get',
    params: query
  })
}

// 查询所有申论试卷管理列表
export function allSlpapers(query) {
  return request({
    url: '/business/slpaper/all/slpapers',
    method: 'get',
    params: query
  })
}

// 查询申论试卷管理详细
export function getSlpaper(id) {
  return request({
    url: '/business/slpaper/' + id,
    method: 'get'
  })
}

// 新增申论试卷管理
export function addSlpaper(data) {
  return request({
    url: '/business/slpaper',
    method: 'post',
    data: data
  })
}

// 修改申论试卷管理
export function updateSlpaper(data) {
  return request({
    url: '/business/slpaper',
    method: 'put',
    data: data
  })
}

// 删除申论试卷管理
export function delSlpaper(id) {
  return request({
    url: '/business/slpaper/' + id,
    method: 'delete'
  })
}
